﻿using System;
using System.Configuration;

namespace mvcForum.Core.Configuration {

	public class NamedComponent : ConfigurationElement {

		public NamedComponent() { }

		//public NamedComponent(int port, string reportType) {
		//    Port = port;
		//    ReportType = reportType;
		//}

		[ConfigurationProperty("name", IsRequired = true, IsKey = true)]
		public String Name {
			get { return (String)this["name"]; }
			set { this["name"] = value; }
		}

		[ConfigurationProperty("type", IsRequired = true, IsKey = false)]
		public String Type {
			get { return (String)this["type"]; }
			set { this["type"] = value; }
		}
	}
}